package work1.work3.car;

import java.util.Scanner;

public class CarTest {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请选择你要坐哪辆车");
        System.out.println("1-----公交车\n2-----出租车");
        int a=in.nextInt();
        Company company=new Company();
        Car car = company.manage(a);
        car.use();

    }
}
